Hierarchical conditional random fields for web extraction

ABSTRACT

A method and system for labeling object information of an information page is provided. A labeling system identifies an object record of an information page based on the labeling of object elements within an object record and labels object elements based on the identification of an object record that contains the object elements. To identify the records and label the elements, the labeling system generates a hierarchical representation of blocks of an information page. The labeling system identifies records and elements within the records by propagating probability-related information of record labels and element labels through the hierarchy of the blocks. The labeling system generates a feature vector for each block to represent the block and calculates a probability of a label for a block being correct based on a score derived from the feature vectors associated with related blocks. The labeling system searches for the labeling of records and elements that has the highest probability of being correct.

BACKGROUND

Web pages accessible via the Internet contain a vast amount of information. A web page may contain information about various types of objects such as products, people, papers, organizations, and so on. For example, one web page may contain a product review of a certain model of camera, and another web page may contain an advertisement offering to sell that model of camera at a certain price. As another example, one web page may contain a journal article, and another web page may be the homepage of an author of the journal article. A person who is searching for information about an object may need information that is contained in different web pages. For example, a person who is interested in purchasing a certain camera may want to read reviews of the camera and to determine who is offering the camera at the lowest price.

To obtain such information, a person would typically use a search engine to find web pages that contain information about the camera. The person would enter a search query that may include the manufacturer and model number of the camera. The search engine then identifies web pages that match the search query and presents those web pages to the user in an order that is based on how relevant the content of the web page is to the search query. The person would then need to view the various web pages to find the desired information. For example, the person may first try to find web pages that contain reviews of the camera. After reading the reviews, the person may then try to locate a web page that contains an advertisement for the camera at the lowest price.

Web search systems have not been particularly helpful to users trying to find information about a specific product because of the difficulty in accurately identifying objects and their attributes from web pages. Web pages often allocate a record for each object that is to be displayed. For example, a web page that lists several cameras for sale may include a record for each camera. Each record contains attributes of the object such as an image of the camera, its make and model, and its price. Web pages contain a wide variety of layouts of records and layouts of attributes within records. Systems identifying records and their attributes from web pages are typically either template-dependent or template-independent. Template-dependent systems may have templates for both the layout of records on web pages and the layout of attributes within a record. Such a system finds record templates that match portions of a web page and then finds attribute templates that match the attributes of the record. Template-independent systems, in contrast, typically try to identify whether a web page is a list page (i.e., listing multiple records) or a detail page (i.e., a single record). The template-independent system then tries to identify records from meta-data of the web page (e.g., tables) based on this distinction. Such systems may then use various heuristics to identify the attributes of the records.

A difficulty with these systems is that records are often incorrectly identified. An error in the identification of a record will propagate to the identification of attributes. As a result, the overall accuracy is limited by the accuracy of the identification of records. Another difficulty with these systems is that they typically do not take into consideration the semantics of the content of a portion that is identified as a record. A person, in contrast, can easily identify records by factoring in the semantics of their content.

SUMMARY

A method and system for labeling object information of an information page is provided. A labeling system identifies an object record of an information page based on the labeling of object elements within an object record and labels object elements based on the identification of an object record that contains the object elements. Thus, the labeling system jointly identifies records and label elements in a way that is more effective than if performed separately. To jointly identify the records and label the elements, the labeling system generates a hierarchical representation of blocks of an information page with blocks being represented as vertices of the hierarchical representation. The labeling system identifies records and elements within the records by propagating probability-related information of record labels and element labels through the hierarchy of the blocks. The labeling system generates a feature vector for each block to represent the block and calculates a probability of a label for a block being correct based on a score derived from the feature vectors associated with related blocks. The labeling system may use a propagation technique to propagate the effect of a labeling of one block to the other blocks within the hierarchical representation. The labeling system searches for the labeling of records and elements that has the highest probability of being correct.

A labeling system uses a hierarchical conditional random fields (“CRF”) technique to label the object elements.

This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram that illustrates an example web page and its corresponding vision tree.

FIG. 2 is a diagram that illustrates the graphical structure of the hierarchical conditional random fields of a vision tree.

FIG. 3 is a diagram that represents the junction tree corresponding to FIG. 2.

FIG. 4 is a block diagram that illustrates components of the labeling system in one embodiment.

FIG. 5 is a flow diagram that illustrates the processing of the label documents component of the labeling system in one embodiment.

FIG. 6 is a flow diagram that illustrates the processing of the generate junction tree component of the labeling system in one embodiment.

FIG. 7 is a flow diagram that illustrates the processing of the propagate beliefs component of the labeling system in one embodiment.

FIG. 8 is a flow diagram that illustrates the processing of the collect component of the labeling system in one embodiment.

FIG. 9 is a flow diagram that illustrates the processing of the distribute component of the labeling system in one embodiment.

FIG. 10 is a flow diagram that illustrates the processing of the learn parameters component of the labeling system in one embodiment.

DETAILED DESCRIPTION

A method and system for labeling object information of an information page is provided. In one embodiment, a labeling system identifies an object record of an information page, such as a web page, based on the labeling of object elements within an object record and labels object elements based on the identification of an object record that contains the object elements. To identify the records and label the elements, the labeling system generates a hierarchical representation of blocks of a web page with blocks being represented as vertices of the hierarchical representation. A block may represent a collection of information of a web page that is visually related. a root block represents the entire web page, a leaf block is an atomic unit (such as an element of a record), and inner blocks represent collections of their child blocks. The labeling system identifies records and elements within the records by propagating probability-related information of record labels and element labels through the hierarchy of the blocks. The labeling system generates a feature vector for each block to represent the block. The labeling system calculates a probability of a label for a block being correct based on a score derived from the feature vectors associated with related blocks. A related block may be a block that is either a parent block or a nearest sibling block within the hierarchical representation. A collection of related blocks is referred to as a “clique.” The labeling system may define feature functions that generate scores, which are combined to give an overall score for a label for a block. A feature function may evaluate the features of a block itself, the combined features of a block and a related block, and the combined features of a block and all its related blocks. The labeling system may use a propagation technique to propagate the effect of a labeling of one block to the other blocks within the hierarchical representation. The labeling system searches for the labeling of records and elements that has the highest probability of being correct.

In one embodiment, the labeling system uses a vision-based page segmentation (“VIPS”) technique to generate a hierarchical representation of blocks of a web page. One VIPS technique is described in Cai, D., Yu, S., Wen, J., and Ma, W., “VIPS: A Vision-Based Page Segmentation Algorithm,” Microsoft Technical Report, MSR-TR-2003-79, 2003, which is hereby incorporated by reference. A VIPS technique uses page layout features (e.g., font, color, and size) to construct a “vision tree” for a web page. The technique identifies nodes from the HTML tag tree and identifies separators (e.g., horizontal and vertical lines) between the nodes. The technique creates a vision tree that has a vertex, referred to as a block, for each identified node. The hierarchical representation of the blocks can effectively keep related blocks together while separating semantically different blocks. FIG. 1 is a diagram that illustrates an example web page and its corresponding vision tree. The web page 110 includes data records 120 and 130, which correspond to blocks 160 and 170, respectively, of vision tree 150. The vision tree includes leaf blocks 162 and 163 corresponding to image 122 and description 123 and leaf blocks 172, 174, and 175, corresponding to image 132 and descriptions 134 and 135.

In one embodiment, the labeling system performs a joint optimization for record identification and element (or attribute) labeling. The labeling system generates a feature vector for each block. The feature vectors are represented as X={X₀,X₁, . . . ,X_(N-1)} where X_(i) represents the feature vector for block i. The labeling system represents the labels of the blocks as the vectors Y={Y₀,Y₁, . . . ,Y_(N-1)} where Y_(i) represents the label for block i. The goal of the labeling system is to calculate the maximum posterior probability of Y and extract data from the assignment as represented by the following:

y*=arg max p(y|x)

where y* represents the labeling with the highest probability for the block represented by the feature vector x. The labeling system thus provides a uniform framework for record identification and attribute labeling. As a result, records that are wrongly identified and cause attribute labeling to perform badly will have a low probability and thus not be selected as the correct labeling. Furthermore, since record identification and attribute labeling are conducted simultaneously, the labeling system can leverage the attribute labels for a better record identification.

In one embodiment, the labeling system uses a hierarchical conditional random fields (“CRF”) technique to label the records and elements of the vision tree representing a web page. CRFs are Markov random fields globally conditioned on the observations X. The graph G=(V,E) is an undirected graph of CRFs. According to CRFs, the conditional distribution of the labels y given the observations x has the form represented by the following:

$\begin{matrix} {{p\text{(}y\left. x \right)} = {\frac{1}{Z(x)}{\prod\limits_{c \in C}^{\;}\; {\phi_{c}\left( {c,{y\left. _{c}{,x} \right)}} \right.}}}} & (1) \end{matrix}$

where C represents a set of cliques in graph G, y|_(c) represents the components of y associated with clique c, φ_(c), represents a potential function defined on y|_(c), and Z is a normalization factor.

FIG. 2 is a diagram that illustrates the graphical structure of the hierarchical conditional random fields of a vision tree. The circles represent inner blocks and the rectangles represent leaf blocks. The observations that are globally conditioned are not shown. The labeling system assumes that every inner block contains at least two child blocks. If an inner block does not contain two child blocks, the labeling system replaces the parent block with the child block. The cliques of the graph in FIG. 2 are its vertices, edges, and triangles. The labeling system represents the conditional probability of Equation 1 as follows:

$\begin{matrix} {{p\text{(}y\left. x \right)} = {\frac{1}{Z(x)}{\exp \begin{pmatrix} {\sum\limits_{v,k}{\mu_{k}{g_{k}\left( {v,{{y\left. _{v}{,x} \right)} +}} \right.}}} \\ {\sum\limits_{e,k}{\lambda_{k}{f_{k}\left( {e,{{y\left. _{e}{,x} \right)} +}} \right.}}} \\ {\sum\limits_{l,k}{\gamma_{k}{h_{k}\left( {t,{y\left. _{l}{,x} \right)}} \right.}}} \end{pmatrix}}}} & (2) \end{matrix}$

where g_(k), ƒ_(k), and h_(k) represent feature functions defined on three types of cliques (i.e., vertex, edge, and triangle, respectively); μ_(k), λ_(k), and γ_(k) represent the corresponding weights; v ε V; e ε E; and t is a triangle, which is also a maximum clique. Although the feature functions generate real values, the labeling system may be implemented so that they are Boolean, that is, true if the feature matches and false otherwise. An example feature function is represented by the following:

$\begin{matrix} {{g_{k}\left( {y_{i}x} \right)} = \left\{ \begin{matrix} {{true},} & {{{{if}\mspace{14mu} y_{i}} = {{Name}\mspace{14mu} {and}\mspace{14mu} x\mspace{14mu} {is}\mspace{14mu} {capitalized}}}} \\ {{false},} & {{otherwise}} \end{matrix} \right.} & (3) \end{matrix}$

which means that if the content of vertex x is capitalized, then the function returns a value of true when the label y_(i) is “Name.”

The labeling system determines weights for the feature functions using the training data D={(Y′,x′)}_(i=1) ^(N) with the empirical distribution {tilde over (p)}(x,y) where N is the number of sets of labeled observations in the training data. The labeling system represents the log-likelihood of {tilde over (p)}(x,y) with respect to a conditional model p(y|x,Θ)) according to the following:

$\begin{matrix} {{L(\Theta)} = {\prod\limits_{x,y}^{\;}\; {{\overset{\sim}{p}\left( {x,y} \right)}\log \; {p\left( {y\left. {x,\Theta} \right)} \right.}}}} & (4) \end{matrix}$

where Θ={μ₁,μ₂, . . . ;λ₁,λ₂, . . . ;γ₁,γ₂, . . . } represents the set of weights for the feature functions. The labeling system identifies the weights as the values that optimize the concave log-likelihood function. The labeling system may use various techniques to determine the weights. For example, the labeling system can use techniques used in other maximum-entropy models as described in Lafferty, J., McCallum, A., & Pereira, F., “Conditional Random Fields: Probabilistic Models for Segmenting and Labeling Sequence Data,” in Proc. ICML, 2001. The labeling system may also use a gradient-based L-BFGS as described in Liu, D. C., & Nocedal, J., “On The Limited Memory BFGS Method for Large Scale Optimization,” Mathematical Programming 45, pp. 503-528, 1989. The gradient-based model represents each element of the gradient vector as follows:

$\begin{matrix} {\frac{\partial{L(\Theta)}}{\partial\lambda_{k}} = {{E_{\; {\overset{\_}{p}{({x,y})}}}\left\lbrack f_{k} \right\rbrack} - {E_{p({y{{x,\Theta})}}}\left\lbrack f_{k} \right\rbrack}}} & (5) \end{matrix}$

where E_({tilde over (p)}(x,y))[ƒ_(k)] is the expectation with respect to the empirical distribution and E_(p(y|x,Θ))[ƒ_(k)] is the expectation with respect to the conditional model distribution. For example, the expectations of ƒ_(k) are:

$\begin{matrix} {{{E_{\; {\overset{\_}{p}{({x,y})}}}\left\lbrack f_{k} \right\rbrack} = {\sum\limits_{x,y}{{\overset{\sim}{p}\left( {x,y} \right)}{\sum\limits_{e \in E}{\sum\limits_{y_{i},y_{j}}{f_{k}\left( {e,y_{i},y_{j},x} \right)}}}}}}{E_{p({y{{x_{,}\Theta})}}}\left\lbrack f_{k} \right\rbrack} = {\sum\limits_{x}{{\overset{\sim}{p}(x)}{\sum\limits_{e \in E}{\sum\limits_{y_{i},y_{j}}{p\left( {y_{i},{{y_{j}\left. x \right){f_{k}\left( {e,y_{i},y_{j},x} \right)}{where}\mspace{14mu} e} = {\left( {i,j} \right)\mspace{14mu} {is}\mspace{14mu} {an}\mspace{14mu} {{edge}.}}}} \right.}}}}}} & (4) \end{matrix}$

The labeling system calculates the expectation for the empirical distribution once and calculates the marginal probabilities for the model distribution during each iteration while solving the optimization problem of Equation 4. Since the graph of FIG. 2 is a chordal graph, the labeling system performs inference to calculate the marginal probabilities using a junction tree algorithm. A junction tree algorithm is described in Cowell, R., Dawid, A., Lauritzen, S., and Spiegelhalter, D., “Probabilistic Networks and Expert Systems,” Springer-Verlag, 1999. A junction tree algorithm constructs the junction tree, initializes potentials of the vertices of the junction tree, and propagates beliefs among the vertices. FIG. 3 represents the junction tree corresponding to FIG. 2. The ellipses represent cliques, and the rectangles represent separators. All the cliques have size 3, since the maximum clique in FIG. 2 is size 3. The labeling system builds the junction tree by obtaining a set of maximal elimination cliques using node elimination. The labeling system then builds a complete cluster graph with weights over cliques. The labeling system selects the spanning tree with the maximum weight as the junction tree.

After the junction tree has been constructed, the labeling system initializes all the potentials of the junction tree to have a value of 1 and multiplies the potential of a vertex, an edge, or a triangle into the potential of any one clique node of T which covers its variables. The potential of a vertex v, an edge e, and a triangle t is represented by the following:

$\begin{matrix} {{{{\phi_{v}\text{(}y\left. _{v}{,x} \right)} = {\exp \text{(}{\sum\limits_{k}{\mu_{k}{g_{k}\left( {v,{y\left. _{v}{,x} \right)}} \right)}}}}},{{\phi_{e}\text{(}y\left. _{e}{,x} \right)} = {\exp \text{(}{\sum\limits_{k}{\lambda_{k}{f_{k}\left( {e,{y\left. _{e}{,x} \right)}} \right)}}}}},{and}}{{\phi_{t}\text{(}y\left. _{t}{,x} \right)} = {\exp \text{(}{\sum\limits_{k}{\gamma_{k}{{h_{k}\left( {t,{y\left. _{t}{,x} \right)}} \right)}.}}}}}} & (5) \end{matrix}$

The labeling system in one embodiment uses a two-phase schedule algorithm to propagate beliefs within the junction tree. A two-phase schedule algorithm is described in Jensen, F., Lauritzen, S., and Olesen, K., “Bayesian Updating in Causal Probabilistic Networks by Local Computations,” Computational Statistics Quarterly, 4:269-82, 1990. The algorithm uses a collection and distribution phase to calculate the potentials for the cliques and separators. One skilled in the art will appreciate that the labeling system can use other message passing techniques to propagate beliefs. Upon completion of the distribution phase, the potentials represent marginal potentials that are used by the labeling system to guide finding the solution for the weights that best match the training data.

After learning the weights, the labeling system uses the weights to find labels for the blocks of web pages. The labeling system uses the VIPS technique, the junction tree algorithm, and a modified two-phase schedule algorithm to find the best labeling. The labeling system generates a vision tree from the web page and generates a junction tree. The labeling system modifies the two-phase schedule algorithm by replacing its summations with maximizations. The best labeling for a block is found from the potential of any clique that contains the block.

FIG. 4 is a block diagram that illustrates components of the labeling system in one embodiment. The labeling system 410 is connected to web sites 420 via communications link 430. The labeling system includes a document store 411 and a training data store 412. The document store contains web pages that may be collected from the various web sites. The training data store contains vision trees generated from the web pages along with the correct labeling of the records and elements of the web pages. The labeling system also includes a learn parameters component 413 and a label documents component 414. The learn parameters component inputs the training data and generates the weights for the feature functions. The label documents component inputs a web page and identifies the correct labeling for the blocks within the web page. The labeling system also includes auxiliary components such as a generate junction tree component 415, a propagate beliefs component 416, a collect component 417, and a distribute component 418 as described below in detail.

The computing devices on which the labeling system may be implemented may include a central processing unit, memory, input devices (e.g., keyboard and pointing devices), output devices (e.g., display devices), and storage devices (e.g., disk drives). The memory and storage devices are computer-readable media that may contain instructions that implement the labeling system. In addition, the data structures and message structures may be stored or transmitted via a data transmission medium, such as a signal on a communications link. Various communications links may be used, such as the Internet, a local area network, a wide area network, or a point-to-point dial-up connection.

The labeling system may be used in various operating environments that include personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.

The labeling system may be described in the general context of computer-executable instructions, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, and so on that perform particular tasks or implement particular abstract data types. Typically, the functionality of the program modules may be combined or distributed as desired in various embodiments.

FIG. 5 is a flow diagram that illustrates the processing of the label documents component of the labeling system in one embodiment. The label documents component is passed a web page and returns an assignment of labels for the blocks of the web page. In block 501, the component generates a vision tree for the web page. In block 502, the component invokes the generate junction tree component to generate a junction tree based on the vision tree. In block 503, the component invokes the propagate beliefs component to propagate the beliefs for the assignments of the labels to the vertices of the junction tree. In block 504, the component assigns the labels with the highest probability to the blocks of the web page and then completes.

FIG. 6 is a flow diagram that illustrates the processing of the generate junction tree component of the labeling system in one embodiment. The component is passed a vision tree and generates a junction tree as described in Cowell, R., Dawid, A., Lauritzen, S., and Spiegelhalter, D., “Probabilistic Networks and Expert Systems,” Springer-Verlag, 1999. In block 601, the component orders the nodes of the vision tree. In block 602, the component identifies the elimination cliques using node elimination. In block 603, the component generates a cluster graph from the elimination cliques. In block 604, the component adds weights to the edges based on the probabilities. In block 605, the component identifies a spanning tree with the maximum weight. The identified spanning tree is the junction tree. The component then returns.

FIG. 7 is a flow diagram that illustrates the processing of the propagate beliefs component of the labeling system in one embodiment. The component implements the two-phase schedule algorithm by invoking the collect component in block 701 passing the root node of the junction tree and then invoking the distribute component in block 702 passing the root node of the junction tree. The collect component and the distribute component are recursive routines that collect and distribute the potentials of the nodes of the junction tree. The component then returns.

FIG. 8 is a flow diagram that illustrates the processing of the collect component of the labeling system in one embodiment. The component recursively invokes itself for each child clique of the passed clique to collect the potentials from the child cliques. In block 801, the component calculates the potential of the passed clique. In blocks 802-805, the component loops selecting each child clique of the passed clique. In block 802, the component selects the next child clique. In decision block 803, if all the child cliques have already been selected, then the component returns the accumulated potential, else the component continues at block 804. In block 804, the component invokes the collect component recursively passing the selected child clique. In block 805, the component accumulates the product of the potential of the passed clique with the potential provided by the selected child clique and then loops to block 802 to select the next child clique.

FIG. 9 is a flow diagram that illustrates the processing of the distribute component of the labeling system in one embodiment. The component is passed a clique along with a potential to be distributed to that clique. In block 901, the component calculates a new potential for the clique factoring in the passed potential. In blocks 902-904, the component loops selecting each child clique and recursively invoking itself. In block 902, the component selects the next child clique. In decision block 903, if all the child cliques have already been selected, then the component returns, else the component continues at block 904. In block 904, the component recursively invokes the distribute component passing the child clique and then loops to block 902 to select the next child clique.

FIG. 10 is a flow diagram that illustrates the processing of the learn parameters component of the labeling system in one embodiment. The learn parameters component inputs the training data and learns the weights for the feature functions. In block 1001, the component inputs the training data. In block 1002, the component calculates the expectations based on the training data. In block 1003, the component generates a junction tree for each web page of the training data by invoking the generate junction tree component for each web page. In block 1004, the component initializes potentials of the junction trees. In blocks 1005-1010, the component loops selecting new weights until the weights converge on a solution. In block 1005, the component selects the next junction tree. In decision block 1006, if all the junction trees have already been selected, then the component continues at block 1008, else the component continues at block 1007. In block 1007, the component invokes the propagate beliefs component to propagate the beliefs for the selected junction tree and then loops to block 1005 to select the next junction tree. In block 1008, the component calculates a differential between the expectation based on the propagated beliefs and the expectation based on the training data. In decision block 1009, if the differential approaches zero, then the component returns with a solution, else the component continues at block 1010. In block 1010, the component adjusts the weights of the feature functions in the direction of the minimum gradient descent and then loops to block 1005 to propagate beliefs of the junction tree with the new weights.

Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. In particular, the two-dimensional CRF technique may be used to label any type of observations that have a two-dimensional relationship. Accordingly, the invention is not limited except as by the appended claims. 

1. A method for labeling observations, the method comprising: receiving observations having hierarchical relationships; and determining a labeling for the observations using a conditional random fields technique that factors in the hierarchical relationships.
 2. The method of claim 1 wherein the observations are represented as a tree of observation vertices and the determining includes identifying a hierarchy of cliques of observation vertices within the tree and calculating a probability for sets of labels based on probabilities derived from features of components of the cliques that contain the observation vertices.
 3. The method of claim 2 wherein the components of a clique include the edges and vertices of the clique.
 4. The method of claim 2 wherein the calculating of the probability for a set of labels includes generating a junction tree of the cliques and propagating a belief to the cliques of the junction tree.
 5. The method of claim 4 wherein the beliefs are propagated using a collection phase and a distribution phase.
 6. The method of claim 1 including deriving weights for feature functions based on training data and wherein the determining includes calculating a probability for a set of labels based on the training data.
 7. The method of claim 6 wherein the deriving includes optimizing a log-likelihood function based on the training data.
 8. The method of claim 6 wherein the optimizing uses a gradient-based L-BFGS technique.
 9. The method of claim 1 wherein the determining of the labeling includes propagating probability-related calculations from observation to observation.
 10. A system for identifying object records and object elements of a page, comprising: a component that identifies blocks of the page; and a component that labels object records and object elements based on a probability of a label for a block being correct that is based on probabilities of labels for blocks within the block being correct.
 11. The system of claim 10 wherein the blocks are represented as a tree of blocks and the component that labels identifies a hierarchy of cliques of blocks within the tree and calculates a probability for sets of labels based on probabilities derived from features of components of the cliques that contain the blocks.
 12. The system of claim 11 wherein the calculating of the probability for a set of labels includes generating a junction tree of the cliques and propagating a belief to the cliques of the junction tree.
 13. The system of claim 10 including a component that derives weights for feature functions based on training data and wherein the component that labels calculates a probability for a set of labels based on the training data.
 14. The system of claim 13 wherein the component that derives the weights optimizes a log-likelihood function based on the training data.
 15. The system of claim 13 wherein the component that derives the weights uses a gradient-based L-BFGS technique.
 16. The system of claim 10 wherein the component that labels propagates probability-related calculations from block to block.
 17. A computer-readable medium containing instructions for controlling a computer system to identify object records and object elements of a web page, by a method comprising: providing a hierarchical representation of blocks of the web page, each block representing an object record or an object element; and applying a hierarchical conditional random fields technique to jointly identify a set of record labels and element labels for the blocks based on the hierarchical relationship of the blocks of the web page.
 18. The computer-readable medium of claim 17 wherein the blocks are represented as a tree of blocks and the applying of a hierarchical conditional random fields technique includes identifying a hierarchy of cliques of blocks within the tree and calculating a probability for sets of labels based on probabilities derived from features of components of the cliques that contain the blocks.
 19. The computer-readable medium of claim 17 including deriving weights for feature functions based on training data of object records, object elements, and labels and wherein the applying calculates a probability for a set of labels based on the derived weights.
 20. The computer-readable medium of claim 19 wherein the applying uses a gradient-based L-BFGS technique. 